#!/usr/bin/env python

from collab import CollabModel;
import sys;

try:
    n_users = sys.argv[1];
except:
    print "Usage:", sys.argv[0], "n [preferred channel]";
    print " where 'n' is the number of people in the company,";
    print " and 'preferred channel' is the name of a channel to initially prefer (default none).";
    sys.exit(1);

try:
    preferred_channel = sys.argv[2];
except:
    preferred_channel = None;

cm = CollabModel(n_persons=int(n_users, 10),
                 channel_adaptability=True,
                 bump_list=[True, False],
                 dump_list=[True],
                 max_time=60*60*1000,
                 preferred_channel=preferred_channel);
cm.runModel();
